package me.firstapp.service.bbs;

import me.firstapp.module.bbs.PointAccount;

public interface PointAccountService {

	/**
	 * 通过用户id查询积分账户
	 * 
	 * @param memberId
	 * @param apiClientId
	 * @return
	 */
	PointAccount findByMemberId(Long memberId, Long apiClientId);

	/**
	 * 修改支付密码
	 * 
	 * @param memberId
	 * @param oldPassword
	 * @param newPassword
	 * @param apiClientId
	 * @return
	 */
	PointAccount updatePayPassword(Long memberId, String oldPassword, String newPassword, Long apiClientId);

	/**
	 * 积分充值
	 * 
	 * @param memberId
	 * @param cardNo
	 *            卡号
	 * @param password
	 *            卡密
	 */
	PointAccount executeRecharge(Long memberId, String cardNo, String password, String payPassword, Long apiClientId);

}
